package com.parking.status.sync.netty.entity;

/**
 * Created by Administrator on 2015/9/21.
 */
public class ResultCode {

    public static final String RESULT_OK = "1";
    public static final String RESULT_NOUSER = "2";
    public static final String RESULT_WRONG_PASSWORD = "3";
    public static final String RESULT_OTHER_INUSE = "5";
    public static final String RESULT_WITHOUT_LOT = "6";
    public static final String RESULT_BATCH_NOT_EXIST = "7";
    public static final String RESULT_USER_NOT_REGISTER = "101";
    public static final String RESULT_TERMINAL_NOT_RESGISTER = "102";
    public static final String RESULT_SIM_NOT_REGISTER = "103";
    public static final String RESULT_PASM_NOT_REGISTER = "104";
    public static final String RESULT_UNKNOW_ERROR = "999";


    public static String getMessage(String result) {
        if (result.equalsIgnoreCase(RESULT_OK)) {
            return "成功";
        } else if (result.equalsIgnoreCase(RESULT_NOUSER)) {
            return "无此用户";
        } else {
            return "未知错误";
        }
    }
}
